<!DOCTYPE html>
<html>

<head>
    <meta charset="UTF-8">
    <title>折叠面板</title>
    <meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
    <link href="https://cdn.bootcss.com/zui/1.7.0/css/zui.min.css" rel="stylesheet">
</head>

<body>
    <div id="pageBody" class="scrollbar-hover">
        <div class="container">
            <div id="pageContent">
                <article>
                    <p>折叠插件使用直观的动画来展示或显示内容。</p>
                </article>
                <section>
                    <article>
                        <h4>示例</h4>
                        <div class="example">
                            <p>
                                <button type="button" class="btn collapsed" data-toggle="collapse" data-target="#collapseExample">使用 data-target 属性</button>
                                <a href="#collapseExample" data-toggle="collapse" class="btn btn-link">直接使用 href 属性</a>
                            </p>
                            <div class="collapse" id="collapseExample" style="height: 0px;">
                                <div class="bg-primary with-padding">
                                    <p>被折叠元素内容。</p>
                                    <p>多个触发元素可以指向同一个折叠内容。</p>
                                </div>
                            </div>
                        </div>
                    </article>
                </section>
                <style>
                    #accordion>div+p {
                        padding-top: 10px;
                    }
                </style>
                <section>
                    <header>
                        <h3>折叠分组</h3>
                    </header>
                    <article>
                        <div class="example">
                            <div id="accordion">
                                <p>
                                    <a href="#collapseExample1" data-toggle="collapse" data-parent="#accordion" class="btn btn-link collapsed">蓝色背景</a>
                                </p>
                                <div class="collapse" id="collapseExample1" style="height: 0px;">
                                    <div class="bg-primary with-padding">
                                        <p>被折叠元素内容。</p>
                                        <p>多个触发元素可以指向同一个折叠内容。</p>
                                    </div>
                                </div>
                                <p>
                                    <a href="#collapseExample2" data-toggle="collapse" data-parent="#accordion" class="btn btn-link collapsed">绿色背景</a>
                                </p>
                                <div class="collapse" id="collapseExample2">
                                    <div class="bg-success with-padding">
                                        <p>被折叠元素内容。</p>
                                        <p>多个触发元素可以指向同一个折叠内容。</p>
                                    </div>
                                </div>
                                <p>
                                    <a href="#collapseExample3" data-toggle="collapse" data-parent="#accordion" class="btn btn-link collapsed">红色背景</a>
                                </p>
                                <div class="collapse" id="collapseExample3">
                                    <div class="bg-danger with-padding">
                                        <p>被折叠元素内容。</p>
                                        <p>多个触发元素可以指向同一个折叠内容。</p>
                                    </div>
                                </div>
                            </div>
                        </div>
                        <h4>结合面板组使用</h4>
                        <div class="example">
                            <div class="panel-group" id="accordionPanels" aria-multiselectable="true">
                                <div class="panel panel-default">
                                    <div class="panel-heading" id="headingOne">
                                        <h4 class="panel-title">
                                            <a data-toggle="collapse" data-parent="#accordionPanels" href="#collapseOne">
                                                折叠面板 1
                                            </a>
                                        </h4>
                                    </div>
                                    <div id="collapseOne" class="panel-collapse collapse in">
                                        <div class="panel-body">折叠面板内容 1</div>
                                    </div>
                                </div>
                                <div class="panel panel-default">
                                    <div class="panel-heading" id="headingTwo">
                                        <h4 class="panel-title">
                                            <a class="collapsed" data-toggle="collapse" data-parent="#accordionPanels" href="#collapseTwo">
                                                折叠面板 2
                                            </a>
                                        </h4>
                                    </div>
                                    <div id="collapseTwo" class="panel-collapse collapse">
                                        <div class="panel-body">折叠面板内容 2</div>
                                    </div>
                                </div>
                                <div class="panel panel-default">
                                    <div class="panel-heading" id="headingThree">
                                        <h4 class="panel-title">
                                            <a class="collapsed" data-toggle="collapse" data-parent="#accordionPanels" href="#collapseThree">
                                                折叠面板 3
                                            </a>
                                        </h4>
                                    </div>
                                    <div id="collapseThree" class="panel-collapse collapse">
                                        <div class="panel-body">折叠面板内容 3</div>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </article>
                </section>
            </div>
            <nav></nav>
        </div>
    </div>

    <script src="https://cdn.bootcss.com/jquery/3.2.1/jquery.min.js"></script>
    <script src="https://cdn.bootcss.com/zui/1.7.0/js/zui.min.js"></script>
</body>

</html>